import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { createStore,applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux'
import MainWindow from './Router.js';
import Reducers from './reducers/index.js'


import * as serviceWorker from './serviceWorker';

const store = createStore(
    Reducers, 
    applyMiddleware(thunk)
);

ReactDOM.render(
    <Provider store={store}>
        <MainWindow />
    </Provider>
    
, document.getElementById('root'));


serviceWorker.unregister();
